#include<stdio.h>
#include<string.h> 
int main()
{
	int i,n,letter,star,blank;
	char a[10000];
	i=0;letter=0;star=0;blank=0;
	printf("please input a series of char,end by #.\n");
	scanf("%s",&a[1000]);
	while(a[i]!='#'&&a[i]!='\0')
	{
		i++;
		if (a[i]<='z'&&a[i]>='a')
		{
			letter++;
		}
		else
		{
			switch(a[i])
			{
				case' ':blank++;break;
				case'*':star++;break;
			}
		}	
	}
	printf("letter=%d\nblank=%d\nstar=%d\n",letter,blank,star); 
}
	/*do
	{
		a=getchar();
		if (a<='z'&&a>='a')
		{
			letter++;
		}
		else
		{
			switch(a)
			{
				case' ':blank++;break;
				case'*':star++;break;
			}
		}
		
	}
	while(a!='#');
		
	printf("letter=%d\nblank=%d\nstar=%d\n",letter,blank,star); 
}*/

